#ifndef  _SKIP_CONF_H_
#define  _SKIP_CONF_H_
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>

#define SKIP_FALSE		(-1)
#define SKIP_TRUE		(0)

#define R_NULL			(-1L)
#define R_START			(0L)

typedef unsigned char	byte;
typedef off_t			RECPOS;
typedef int				idx_t;


#ifdef WIN32
	typedef unsigned __int64	uint64_t;
#elif defined(__linux__)
	#include <stdint.h>
#endif

// memory slice
typedef struct _slice{
	byte* buf;
	int	  size;
}slice;

#undef malloc
#undef free

#define malloc			s_malloc
#define free			s_free
#define throw_error		printf

void* s_malloc(size_t size);
void s_free(void* p);
void mem_print();

#endif
